<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            /* margin: 30px; */
            display: flex;
            height: 70px;
            background-color: teal;
        }
        .inner{
            width: 15%;
            height: 100%;
            color: #fff;
            font-size: 20px;
            text-align: center;
            line-height: 70px;
        }
        .inner:nth-child(5){
            flex-grow: 1;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="inner">导航A</div>
        <div class="inner">导航B</div>
        <div class="inner">导航C</div>
        <div class="inner">导航D</div>
        <div class="inner"></div>
        <div class="inner">登录</div>
    </div>
</body>
</html>